import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.GregorianCalendar;


public class Test {
	public static boolean test(long fistRobTime) throws Exception {
		if(fistRobTime == 0){
			return true;
		}
		GregorianCalendar gc = new GregorianCalendar();
		gc.setTimeInMillis(fistRobTime);
		GregorianCalendar now = new GregorianCalendar();
		if(gc.get(GregorianCalendar.DAY_OF_MONTH)==now.get(GregorianCalendar.DAY_OF_MONTH)){
			return false;
		}else{
			return true;
		}
	}
	public static void main(String[] args) throws Exception {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss SSS");
		System.out.println(sdf.format(new Date(1344517293081l)));
//		System.out.println(test(new Date().getTime()));
//		for(int i=0;i<50;i++){
//			new Thread(new Runnable() {
//				
//				@Override
//				public void run() {
//					DefaultHttpClient client = new DefaultHttpClient();
//					client.addResponseInterceptor(new HttpResponseInterceptor() {
//						@Override
//						public void process(HttpResponse response, HttpContext context)
//								throws HttpException, IOException {
//							if (response.getStatusLine().getStatusCode() == 500) {
//								System.out.println(500);
//							}
//						}
//					});
//					List<NameValuePair> pairs = new ArrayList<NameValuePair>();
//					pairs.add(new BasicNameValuePair("authcode", "test"));
//					pairs.add(new BasicNameValuePair("item_goods", "[{\"type\":192,\"num\":10}]"));
//					pairs.add(new BasicNameValuePair("gift_goods", "[]"));
//					try {
//						JSONObject jsob = HttpClientUtils.doAJAXRequest( client, "http://gs.163.com/gs2/shop/grade/trade", pairs,DataFactory.getRobHeader());
//						System.out.println(jsob);
//					} catch (ClientProtocolException e) {
//						e.printStackTrace();
//					} catch (IOException e) {
//						e.printStackTrace();
//					}
//				}
//			}).start();
//		}
	}
}
